<?php
	
?>
<div class="main-bg clearfix">
  <div class="container main-box clearfix">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
		    <form class="form-horizontal mt-2em" action="" method="post" id="reg_form">
		          <p class="text-center">
		            <a href="<?php echo site_url('account');?>" class="btn btn-danger btn-lg"> 基本资料 </a>&nbsp;&nbsp;&nbsp;&nbsp;	    
		            <a href="<?php echo site_url('ecard/ecardList');?>" class="btn btn-danger btn-lg cur-active">我品牌书</a>
		          </p>
		          <div class="text-center">
				  <?php if($userinfo):?>
		            <img src="<?php echo UC_API;?>/avatar.php?uid=<?php echo $userinfo['id']?>&type=virtual&size=big" />
		            <p><?php echo $userinfo['username']?></p>
		            <p>
		              <a href="<?php echo site_url('account/profile')?>"><span class="glyphicon glyphicon-edit"></span>编辑资料</a>&nbsp;&nbsp;&nbsp;&nbsp;
		              <a href="<?php echo site_url('account/profile')?>"><span class="glyphicon glyphicon-lock"></span>修改密码</a>
		            </p>  
					<?php endif;?>
		          </div>
		          <div class="form-group">
          </div>
		  <?php if($userinfo):?>
		  <?php $dropdown = $this->config->item('dropdown');?>
		  <div class="form-group">
		    <label  class="col-sm-4 control-label">性别</label>
		    <div class="col-md-8 col-sm-8">
		      <p class="form-control-static"><?php echo $dropdown['sex'][$userinfo['sex']]?></p>
		    </div>
		  </div>
		  <div class="form-group">
		    <label  class="col-sm-4 control-label">生日</label>
		    <div class="col-md-8 col-sm-8">
		      <p class="form-control-static"><?php echo $userinfo['birthday']?></p>
		    </div>
		  </div>
		  <div class="form-group">
		    <label  class="col-sm-4 control-label">星座</label>
		    <div class="col-md-8 col-sm-8">
		      <p class="form-control-static"><?php echo $dropdown['constellation'][$userinfo['constellation']]?></p>
		    </div>
		  </div>
		  <div class="form-group">
		    <label  class="col-sm-4 control-label">邮箱</label>
		    <div class="col-md-8 col-sm-8">
		      <p class="form-control-static"><?php echo $userinfo['email']?></p>
		    </div>
		  </div>
		  <div class="form-group">
		    <label  class="col-sm-4 control-label">地区</label>
		    <div class="col-md-8 col-sm-8">
		      <p class="form-control-static"><?php echo $userinfo['address']?></p>
		    </div>
		  </div>
		  <?php endif;?>
			</form>
		</div>
		
		</div>
	</div>
  </div>